package com.notaria.guerrasalas.bc;

import gob.satt.comun.jpa.jta.AbstractJtaStatelessCRUDServices;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Stateless
public class GuerraSalasServiceBean<K, T>
        extends AbstractJtaStatelessCRUDServices<K, T>
        implements GuerraSalasServiceLocal<K, T> {

    @PersistenceContext(unitName = "com.notaria.guerrasalas-ejbPU")
    private EntityManager em;

    public GuerraSalasServiceBean() {
    }

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }
}
